1.Ubuntu Create directory Command format: mkdir [options] directory ... Command features: The mkdir command enables you to create a directory named with the specified name at the specified location. The user who created the directory must have
One, Linux file system three kinds of identities
1), file owner2), the same group of usersusers of the same user group can access the user group's files;Each account can be added to multiple user groups.Files in the same user group can also be set
One, the directory of files under LinuxSummary: The Linux file system is a hierarchical, tree- like structure in which the topmost layer of the structure is the root directory "/", and then another directory is created in this directory. A deep
Three types of identities for Linux file systems
File owner
Same group of usersUsers of the same user group can access the files of the user group;Each account can be joined to multiple user groups.Files in the same user group can also
In Linux , everything is files, ordinary files are files, directories are files, hardware devices are files, so learning to understand The files in Linux is very important. Linux There are three types of files in:(1) ordinary documents: also
Under Linux, Web directories and file permissions must consider the security of the system as a whole. In general, for the directory, you need to set R (read) and X (execute) permissions, and some directories also need W (write permission), for
What ls-al/tmp see today is RWXRWXRWT is surprised what this t is, how is it not X or-? Search for the following discovery:
This t represents the so-called sticky bit.
Sticky bit: This bit can be understood as an anti-delete bit.
One: Users and Groups1 file Owner (user): is the owner of this file, has permissions to the file2 Group: Users within their group have access to files3 Others (Other):4 Linux user identities and group recorded filesBy default, information about
The meaning of directory and file permissions in Linux
The meaning of file permission
R: You can read the specific contents of this document;
W: You can edit the contents of this file, including adding the details of the deleted file;
X: The
Each file or directory in Linux contains access rights that determine who can access and how to access these files and directories.By setting permissions, you can restrict access by only allowing users to access them, allowing users in a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.